package aures.ui;

import org.gnome.glade.Glade;
import org.gnome.glade.XML;
import org.gnome.gtk.HBox;
import org.gnome.gtk.Label;
import org.gnome.gtk.Widget;

public class AuresPage{

	private Widget child;
	private String title;
	private XML gladefile;
	
	public AuresPage(String src, String root, String title) throws Exception {
		gladefile = Glade.parse(src, root);
		this.child = gladefile.getWidget(root);		
		this.title = title;
	}
	
	public Object getChild (){
		return this.child;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Widget getWidget (String name){
		return this.gladefile.getWidget(name);
	}
	
}
